<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cadastrar novo usuário</title>
</head>
<f:view>
<h:body>
	<h3>Novo Usuário</h3>
	<h:form>
		<h:panelGrid border="1" columns="2">
			<h:outputText value="Nome: "></h:outputText>
			<h:inputText value="#{cad.novo.nome}" required="true"></h:inputText>
			<h:outputText value="Login: "></h:outputText>
			<h:inputText value="#{cad.novo.login}" required="true"></h:inputText>
			<h:outputText value="Senha: "></h:outputText>
			<h:inputSecret value="#{cad.novo.senha}" required="true"></h:inputSecret>
			<h:outputText value="Repita a senha:"></h:outputText>
			<h:inputSecret value="#{cad.senhaRepetida}"></h:inputSecret>
		</h:panelGrid>
		<h:commandButton value="Cadastrar Usuário" action="#{cad.cadastrarUsuario}" ></h:commandButton>
	      
	</h:form>
	
	
</h:body>
</f:view>
</html>